<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@page import="model.JsfStaff"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<title>增加意见</title>
</head>
<body>
<table >
			<s:iterator value="jsfclass" var="var">
				<tr>
				<td> 编号：
				<s:property value="#var.id" />
				</tr>
				<tr>
				<td> 课程名称：
				<s:property value="#var.name" />
				</tr>
				<tr>
				<td> 开始时间：
				<s:property value="#var.beginTime" />
				</tr>
				<tr>
				<td> 结束时间：
				<s:property value="#var.endTime" />
				</tr>
				<tr>
				<td> 地点：
				<s:property value="#var.place" />
				</tr>
				<tr>
				<td> 班级人数：
				<s:property value="#var.clientNumMax" />
				</tr>
				<tr>
				<td>价格：
				<s:property value="#var.priceEveryone" />
				</tr>
				<tr>
				<td>教练：
				<s:property value="#var.jsfCoach.name" />
				</tr>
				<tr>
				<td>其他信息：
				<s:property value="#var.detail" />
				</tr>
		<s:form name="form1" action="order_addSuggest" method="post" onsubmit="return check()">
				<s:textarea id="suggest" name="suggest" label="意见"></s:textarea>
				<input type="hidden" value='<s:property value="#var.id" />'name="classId" id="classId">
				<tr><td><input type="submit" value="提交" class="btn btn-info"/></td>
				<td><input type="reset" value="重置" class="btn btn-info"/></td></tr>
		</s:form>
			</s:iterator>
		</table>
<script type="text/javascript">
    function check()
    {
	    var n=document.getElementsByName("uncheckreason")[0].value;
	    var inner = document.getElementById("warnId");
		if(trim(n) == "" || trim(pw) == ""){
	    	inner.innerHTML = "输入不能为空";
	    	return false;
	    }
	    else return true;
    }
    
    function trim(s) {       //去掉两边的空格
	    var count = s.length;   
	    var st    = 0;       // start   
	    var end   = count-1; // end   
	   
	    if (s == "") return s;   
	    while (st < count) {   
	      if (s.charAt(st) == " ")   
	        st ++;   
	      else  
	        break;   
	    }   
	    while (end > st) {   
	      if (s.charAt(end) == " ")   
	        end --;   
	      else  
	        break;   
	    }   
	    return s.substring(st,end + 1);   
 	}
    </script>
</body>
</html>